package com.ryan.demo.url.utils;

import java.net.URL;

public class UrlDemo {
	public static URL getUrlByClass(Class<?> theClass){
		return theClass.getResource("");
	}
	public static String getClassPathByClass(Class<?> theClass){
		return theClass.getResource("/").getPath();
	}
	public static String getRealPathByClass(Class<?> theClass){
		return theClass.getResource("").getPath();
	}
}
